package com.xinchuang.entity.targetSystem.damage;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 战斗部管理
 */
@Data
@ToString
@TableName(value = "t_warhead")
public class TWarhead implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 战斗部名称
     */
    @TableField(value = "warhead_name")
    private String warheadName;

    /**
     * 战斗部类型(字典)
     */
    @TableField(value = "warhead_type")
    private String warheadType;

    /**
     * 战斗部类型(字典)名称
     */
    @TableField(exist = false)
    private String warheadTypeName;

    /**
     * 导弹id
     */
    @TableField(value = "missile_id")
    private String missileId;

    /**
     * 导弹id(字典)名称
     */
    @TableField(exist = false)
    private String missileIdName;

    /**
     * 附带毁伤半径
     */
    @TableField(value = "hurt_radius")
    private Double hurtRadius;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 修改时间
     */
    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 状态(0:正常,1：删除)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_WARHEAD_NAME = "warhead_name";

    public static final String COL_WARHEAD_TYPE = "warhead_type";

    public static final String COL_MISSILE_ID = "missile_id";

    public static final String COL_HURT_RADIUS = "hurt_radius";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DATA_STATUS = "data_status";
}
